//
//  ZPayViewCell.m
//  DoctorFAQs
//
//  Created by zjq on 17/2/17.
//  Copyright © 2017年 zjq. All rights reserved.
//

#import "ZPayViewCell.h"
#import "ZLabelTools.h"
@interface ZPayViewCell ()
@end
@implementation ZPayViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self initlizeInterface];
    }
    return self;
}
- (void)initlizeInterface {
    [self makeALLSubView];
    [self makeSubViewMasnoy];
}
- (void)makeALLSubView {
    _theTitlelabel = [[UILabel alloc] init];
    [ZLabelTools setThelabel:_theTitlelabel Textcolor:[UIColor blackColor] backColor:[UIColor whiteColor] Fontsize:15 context:@"" isCenter:NO];
    _theTextLabel = [[UILabel alloc] init];
    [ZLabelTools setThelabel:_theTextLabel Textcolor:KHGaryColor backColor:[UIColor whiteColor] Fontsize:15 context:@"" isCenter:NO];
}
- (void)makeSubViewMasnoy {
    [self.contentView addSubview:_theTitlelabel];
    [self.contentView addSubview:_theTextLabel];
    [_theTitlelabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).offset(15*xsIZE);
        make.centerY.equalTo(self.contentView);
        make.height.offset(15*xsIZE);
        make.width.offset(90*xsIZE);
    }];
    [_theTextLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_theTitlelabel.mas_right);
        make.height.equalTo(_theTitlelabel);
        make.width.offset(200*xsIZE);
        make.centerY.equalTo(_theTitlelabel);
    }];
}
@end
